package com.ruoyi.system.api.factory;

import com.ruoyi.system.api.RemoteLeaveService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class RemoteLeaveFallbackFactory implements FallbackFactory<RemoteLeaveService> {

    private static final Logger log = LoggerFactory.getLogger(RemoteFileFallbackFactory.class);


    @Override
    public RemoteLeaveService create(Throwable cause) {
        log.error("日志服务调用失败:{}", cause.getMessage());

        return null;
    }
}
